package com.woniuxy.lrz.carlproject.controller.form.serviceform;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Data
@ApiModel
public class UpdateServiceForm {

    @NotNull
    @ApiModelProperty("服务id")
    private Integer serviceId;

    @NotBlank
    @Length(max = 64)
    @ApiModelProperty("服务名")
    private String serviceName;

    @NotNull
    @ApiModelProperty("服务价格")
    private Double servicePrice;

    @NotNull
    @ApiModelProperty("关联二级分类id")
    private Integer serviceSecondId;

    @NotBlank
    @ApiModelProperty("服务图片")
    private String servicePhoto;

    @NotBlank
    @ApiModelProperty("状态 上架-up 下架-down ")
    private String serviceStatus;

    @ApiModelProperty("逻辑删除(0正常，1删除)")
    private Integer deleted;

}
